package com.wjc.train.business.controller;

import com.wjc.train.common.req.SmsReport;
import com.wjc.train.common.resp.SmsResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 车站表 前端控制器
 * </p>
 *
 * @author Guessed
 * @since 2023-08-14
 */
@RestController
@Validated
@Slf4j
@RequestMapping("/sms")
public class WebSmsController {

    /**
     * 获取短信发送回调
     * @param smsReport
     * @return
     */
    @PostMapping("/getRes")
    public SmsResponse save(@RequestBody SmsReport smsReport){
       log.info("收到短信回调:{}",smsReport);
        return new SmsResponse();
    }

}


